* Arexx program for WWWworkbench. This one loads selected file *into Personal Paint 7+. The filename was placed in the cliplist by prior *running of W4arexx.brx.*/
OPTIONS RESULTS
filename=getclip('filename')
IF ~SHOW('Ports','PPAINT') THEN DO
ADDRESS 'COMMAND'
'Run PPAINT:PPAINT NOCHECK'
'SYS:RexxC/WaitForPort PPAINT'
END
Address'PPAINT'
screentofront
LoadImage '"'filename'" FORCE QUIET'
if rc~=0 then Requestnotify 'PROMPT "Loading failed. Is it a loadable file? "'